{extend name="common/base"}
{block name="data_type"}widgets{/block}

            {block name="content"}

            <div class="row-content am-cf">


                <div class="row">

                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">权限管理</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body am-fr">

                                <form class="am-form tpl-form-line-form" action="{:url('store')}" method="post" enctype="multipart/form-data">
                                    <div class="am-form-group">
                                        <label for="ord" class="am-u-sm-3 am-form-label">排序 <span class="tpl-form-line-small-title">ord</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="number" class="tpl-form-input" id="ord" name="ord" placeholder="请输入排序数字">
                                            <small>(数字越小，排序越前)</small>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="name" class="am-u-sm-3 am-form-label">权限名称 <span class="tpl-form-line-small-title">name</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="am-form-field tpl-form-no-bg" name="name" id="name" placeholder="请输入权限名称">
                                            <small>请输入权限名称</small>
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label for="personal_name" class="am-u-sm-3 am-form-label">权限人性化名称 <span class="tpl-form-line-small-title">personal_name</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="am-form-field tpl-form-no-bg" name="personal_name" id="personal_name" placeholder="请输入权限人性化名称">
                                            <small>请输入权限名称</small>
                                        </div>
                                    </div>


                                    <div class="am-form-group">
                                        <label for="type" class="am-u-sm-3 am-form-label">是否为菜单</label>
                                        <div class="am-u-sm-9">
                                            <div class="tpl-switch">
                                                <input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" name="type" id="type" checked="" value="0">
                                                <div class="tpl-switch-btn-view">
                                                    <div>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="pid" class="am-u-sm-3 am-form-label">父权限</label>
                                        <div class="am-u-sm-9">
                                        <select name="pid" id="pid" class="am-form-field tpl-form-no-bg">
                                            <option value="0">--顶级权限--</option>
                                            {foreach name="permission" id="v"}
                                            <option value="{$v.id}">{$v.personal_name}</option>
                                            {/foreach}
                                        </select>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <div class="am-u-sm-9 am-u-sm-push-3">
                                            <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>



            </div>
            {/block}